package hlhj.fhp.supreme.activitys

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.Gravity
import com.jzxiang.pickerview.TimePickerDialog
import hlhj.fhp.supreme.BaseAty
import hlhj.fhp.supreme.R
import hlhj.fhp.supreme.customview.ChangeAddressPopwindow
import kotlinx.android.synthetic.main.activity_regis_teacher_aty.*

class RegisTeacherAty : BaseAty() {

    override fun getContentId(): Int = R.layout.activity_regis_teacher_aty

    override fun initListener() {

        btChooseCity.setOnClickListener {
            val mChangeAddressPopwindow = ChangeAddressPopwindow(this)
            mChangeAddressPopwindow.showAtLocation(etCity, Gravity.BOTTOM, 0, 0)
            mChangeAddressPopwindow
                    .setAddresskListener { province, city, area -> etCity.setText("$province-$city-$area") }
        }


    }
}
